<?php
class Zend_View_Helper_DrawMenu extends Zend_View_Helper_Abstract
{
protected $ft;
    public function __construct()
    {
    $this->ft = true;
    }
    public function Draw($Array,$Prefix = '')
    {
        if (  count($Array)  ) 
        {
            foreach ($Array as $Value)
            {
                ?>
                
                
                  <tr> 
        <td height="5"></td>
        <td></td>
    </tr>
    <tr> 
        <td background="<?php echo $this->view->baseUrl('stuff/theme/menu11.gif') ?>" height="23" width="188"> 
            <div align="right"><a href="<?php echo $this->view->baseUrl($Value['Link'])?>" class="menu"><?php echo $Value['Name']; ?></a> </div>
        </td>
        <td> </td>
    </tr>
                <?php 
            }
        }
    }
    
    
    public function drawMenu()
    {
        $Menu = new Menu();
        $Array= $Menu->buildHierarchy();
        
        $this->Draw($Array);
    }
}